package ru.yandex.api.money.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @author: Melnikov Ivan melnikov.ivan@gmail.com
 */
public class AccountInfo {

	private long account;
	private double balance;
	private int currency;

	public AccountInfo(JSONObject json) {
		try {
			this.account = json.getLong("account");;
			this.balance = json.getDouble("balance");
			this.currency = json.getInt("currency");
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public long getAccount() {
		return account;
	}

	public void setAccount(long account) {
		this.account = account;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public int getCurrency() {
		return currency;
	}

	public void setCurrency(int currency) {
		this.currency = currency;
	}

}
